{template header.html}
<div class="subnav">
	<div class="content-menu ib-a blue line-x">
		{$menu}<span>|</span><a href="{SYS_HELP_URL}81.html" target="_blank"><em>{lang('help')}</em></a>
	</div>
	<div class="bk10"></div>
	<div class="explain-col">
        <font color="gray">{lang('html-342')}</font>
	</div>
	<div class="bk10"></div>
	<div class="table-list">
		<table width="100%">
		<thead>
		<tr>
			<th width="100" align="left">{lang('html-026')}</th>
			<th width="80" align="left">{lang('html-453')}</th>
			<th width="100" align="left">{lang('html-791')}</th>
			<th align="left" class="dr_option">{lang('option')}</th>
		</tr>
		</thead>
		<tbody>
		{loop $list $t}
		<tr>
			<td align="left">
            {if $this->ci->is_auth('admin/form/edit')}
            <a href="{dr_url('form/edit', array('id' => $t.id))}">{$t.name}</a>
            {else}
            {$t.name}
            {/if}
            </td>
			<td align="left">{$t.table}</td>
			<td align="left">form_{$t.table}.html</td>
			<td align="left" class="dr_option">
			<a class="alist" href="javascript:;" onClick="dr_dialog_show('{lang('html-561')}', '{dr_url('form/toform', array('id'=>$t.id))}')">{lang('html-561')}</a>
			<a class="ago" href="{SITE_URL}index.php?c=form_{$t.table}" target="_blank">{lang('331')}</a>
			{if $this->ci->is_auth('admin/form/listc')}<a class="alist" href="{dr_url('admin/form_'.$t['table'].'/index')}">{lang('246')}</a>{/if}
			{if $this->ci->is_auth('admin/field/index')}<a class="aadd" href="{dr_url('admin/field/index', array('rname'=>'form-'.SITE_ID, 'rid'=>$t.id))}">{lang('html-169')}</a>{/if}
			{if $this->ci->is_auth('admin/form/edit')}<a class="aedit" href="{dr_url('form/edit', array('id'=>$t.id))}">{lang('edit')}</a>{/if}
			{if $this->ci->is_auth('admin/form/del')}<a class="adel" href="javascript:;" onClick="return dr_confirm_url('{lang('015')}','{dr_url('form/del', array('id'=>$t.id))}');">{lang('del')}</a>{/if}
            </td>
		</tr>
		{/loop}
		<tr class="dr_border_none">
			<td align="left" style="border:none" colspan="6"> 
			<font color="#FF0000">{dr_lang('html-247', 'dayrui', SITE_TEMPLATE)}</font></td>
		</tr>
		</tbody>
		</table>
	</div>
</div>
{template footer.html}